<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags" %>
<%@ page isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>山西煤炭现货公路交易系统客户端</title>
 <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"/>
    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/bootstrap/css/bootstrap.min.css"/>
     <!-- daterange picker -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/daterangepicker/daterangepicker-bs3.css"/>
    <!-- Font Awesome -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/font-awesome/css/font-awesome.min.css"/>
    <!-- Ionicons -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/ionicons/css/ionicons.min.css"/>
    <!-- jvectormap -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/jvectormap/jquery-jvectormap-1.2.2.css"/>
    <!-- Theme style -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/AdminLTE.min.css"/>
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/skins/_all-skins.min.css"/>
     <!-- DataTables -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/plugins/datatables/dataTables.bootstrap.css"/>
    <!-- AdminLTE Skins. Choose a skin from the css/skins
         folder instead of downloading all of them to reduce the load. -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/skins/_all-skins.min.css"/>
	<!-- jQuery 2.1.4 -->
    <script src="<s:url value="/resources"/>/adminlte/plugins/jQuery/jQuery-2.1.4.min.js"></script>
	<!-- Bootstrap 3.3.5 -->
    <script src="<s:url value="/resources"/>/adminlte/bootstrap/js/bootstrap.min.js"></script>
	 <!-- AdminLTE App -->
    <script src="<s:url value="/resources"/>/adminlte/dist/js/app.min.js"></script>
    <!-- Theme style -->
    <link rel="stylesheet" href="<s:url value="/resources"/>/adminlte/dist/css/AdminLTE.min.css"/>
    <!-- DataTables -->
    <script src="<s:url value="/resources"/>/adminlte/plugins/datatables/jquery.dataTables.min.js"></script>
    <script src="<s:url value="/resources"/>/adminlte/plugins/datatables/dataTables.bootstrap.min.js"></script>
    <!-- default -->
     <script src="<s:url value="/resources"/>/adminlte/default.js"></script>
     <!-- 引入 echarts.js -->
    <script src="<s:url value="/resources"/>/echarts/echarts.min.js"></script>
      <script src="<s:url value="/resources"/>/echarts/myechart/tradeSummaryChart.js"></script>
     <script type="text/javascript">
 $(function(){  
   // loadUserInfo();
      loadMenu("${user.roleType}","${menuid}",${menuList});
      barAndLine("interactive",${xAxis},${dTQ},${yTQ},${dTA},${yTA});
 });
     </script>
</head>
<body class="skin-blue sidebar-mini">
<div class="wrapper">
<%@ include file="../../header.jsp" %>
<%@ include file="../../sidebar.jsp" %>
<div class="content-wrapper" >
<!-- <iframe src="mtzq_html/classify1.html" name="main" class="iframe" frameborder="0" id="main" width="100%"  scrolling=no></iframe> -->
        <!-- Content Header (Page header) -->
        <div class="content-header">
          <h1>
           交易分析
            <small>交易情况汇总明细
            </small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="<s:url value="/"/>/index.jsp"><i class="fa fa-dashboard"></i>首页</a></li>
            <li><a href="#" id="location1"></a></li>
            <li class="active" id="location2"></li>
          </ol>
        </div>

        <!-- Main content -->
        <div class="content">
          
          
        <!-- 数据图 start-->
        <!-- 数据图 end -->
        <div class="box box-success">
                <div class="box-header">
                  <h3 class="box-title">交易情况汇总明细表（显示近12个月）</h3>
                  <div class="box-tools pull-right">
                <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                <!-- <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-remove"></i></button> -->
              </div>
                </div><!-- /.box-header -->
                
                <div class="box-body">
                  <table id="dataTab" class="table table-bordered">
		                  <thead>
		                      <tr>
		                        <th colspan="2" style="text-align: center">年份</th>
		                        <c:forEach items="${tabDate}" var="date">
		                        	<th style="padding-left:5px;padding-right:5px;">${date}</th>
		                        </c:forEach>
		                      </tr>
		                      </thead>
                    <tbody>
                    	<tr>
                    		<th rowspan="12"  style="width:20px;vertical-align: middle;">铁路</th>
                    		<th style="width:135px;">月度交易量（万吨）</th>
                    		<c:forEach items="${sumndList}" var="tdata">
                    			<c:if test="${tdata.leix eq '月度'}">
		                        <td>${tdata.shul}</td>
		                        </c:if>
		                     </c:forEach>
                    	</tr>
                    	<tr>
                    		<th>日常交易量（万吨）</th>
                    		<c:forEach items="${sumrcList}" var="tdata">
                    			<c:if test="${tdata.leix eq '日常'}">
		                        <td>${tdata.shul}</td>
		                        </c:if>
		                     </c:forEach>
                    	</tr>                    	
                    	<tr>
                    		<th>交易总量（万吨）</th>
                    		<c:forEach items="${sumupList}" var="tdata">
                    			 
		                        <td>${tdata.shul}</td>
		                         
		                     </c:forEach>
                    	</tr>                    	
                    	<tr>
                    		<th>月度交易额（亿元）</th>
                    		<c:forEach items="${sumndList}" var="tdata">
                    			<c:if test="${tdata.leix eq '月度'}">
		                        <td>${tdata.jiaoye}</td>
		                        </c:if>
		                     </c:forEach>
                    	</tr>

                    	<tr>
                    		<th>日常交易额（亿元）</th>
                    		<c:forEach items="${sumrcList}" var="tdata">
                    			<c:if test="${tdata.leix eq '日常'}">
		                        <td>${tdata.jiaoye}</td>
		                        </c:if>
		                     </c:forEach>
                    	</tr>

                    	<tr>
                    		<th>交易总金额（亿元）</th>
                    		<c:forEach items="${sumupList}" var="tdata">
                    			 
		                        <td>${tdata.jiaoye}</td>
		                         
		                     </c:forEach>
                    	</tr>                    	                    	
                    	<tr>
                    		<th >月度交易量同比</th>
                    		<c:forEach items="${sumndList}" var="tdata">
                    			<c:if test="${tdata.leix eq '月度'}">
		                        	    <c:if test="${tdata.tb lt 0}">
	                    		           <td><font color="green">${tdata.tb}%</font></td>
	                    				</c:if>
	                    				<c:if test="${tdata.tb ge 0}">
	                    				  <td><font color="red">${tdata.tb}%</font></td>
	                    				</c:if>
		                        </c:if>
		                     </c:forEach>
                    	</tr>
                    	<tr>
                    		<th>日常交易量同比</th>
                    		<c:forEach items="${sumrcList}" var="tdata">
                    			<c:if test="${tdata.leix eq '日常'}">
		                        	    <c:if test="${tdata.tb lt 0}">
	                    		           <td><font color="green">${tdata.tb}%</font></td>
	                    				</c:if>
	                    				<c:if test="${tdata.tb ge 0}">
	                    				  <td><font color="red">${tdata.tb}%</font></td>
	                    				</c:if>                    			
		                        </c:if>
		                     </c:forEach>
                    	</tr>
                    	<tr>
                    		<th>交易总量同比</th>
                    		<c:forEach items="${sumupList}" var="tdata">
                    			 
		                        	    <c:if test="${tdata.tb lt 0}">
	                    		           <td><font color="green">${tdata.tb}%</font></td>
	                    				</c:if>
	                    				<c:if test="${tdata.tb ge 0}">
	                    				  <td><font color="red">${tdata.tb}%</font></td>
	                    				</c:if>                         			
		                       
		                     </c:forEach>
                    	</tr>                        	
                    	<tr>
                    		<th>月度交易量环比</th>
                    		<c:forEach items="${sumndList}" var="tdata">
                    			<c:if test="${tdata.leix eq '月度'}">
		                        	    <c:if test="${tdata.hb lt 0}">
	                    		           <td><font color="green">${tdata.hb}%</font></td>
	                    				</c:if>
	                    				<c:if test="${tdata.hb ge 0}">
	                    				  <td><font color="red">${tdata.hb}%</font></td>
	                    				</c:if>                       			
		                        </c:if>
		                     </c:forEach>
                    	</tr>
                    	<tr>
                    		<th>日常交易量环比</th>
                    		<c:forEach items="${sumrcList}" var="tdata">
                    			<c:if test="${tdata.leix eq '日常'}">
		                        	    <c:if test="${tdata.hb lt 0}">
	                    		           <td><font color="green">${tdata.hb}%</font></td>
	                    				</c:if>
	                    				<c:if test="${tdata.hb ge 0}">
	                    				  <td><font color="red">${tdata.hb}%</font></td>
	                    				</c:if>                         			
		                        </c:if>
		                     </c:forEach>
                    	</tr> 
                    	<tr>
                    		<th>交易总量环比</th>
                    		<c:forEach items="${sumupList}" var="tdata">
                    			 
		                        	    <c:if test="${tdata.hb lt 0}">
	                    		           <td><font color="green">${tdata.hb}%</font></td>
	                    				</c:if>
	                    				<c:if test="${tdata.hb ge 0}">
	                    				  <td><font color="red">${tdata.hb}%</font></td>
	                    				</c:if>                       			
		                       
		                     </c:forEach>
                    	</tr>
                 	                   	
                     </tbody>
                  </table>
                </div><!-- /.box-body -->
              </div><!-- /.box -->
          
<!-- 数据图 start-->
        <div class="row">
            <div class="col-xs-12">
             <!-- interactive chart -->
              <div class="box box-primary">
                <div class="box-header with-border">
                  <i class="fa fa-bar-chart-o"></i>
                  <h3 class="box-title">交易情况趋势图（万吨、亿元）</h3>
                  
                </div>
                <div class="box-body">
                  <div id="interactive" style="height: 300px;"></div>
                </div><!-- /.box-body-->
              </div><!-- /.box -->

            </div><!-- /.col (LEFT) -->
          </div><!-- /.row -->
        </div><!-- /.content -->
      </div><!-- /.content-wrapper -->
</div>  
</body>
</html>
